/*
 * File:AbstractDecorator.java Type:net.wangds.common.decorator.AbstractDecorator
 */

package net.wangds.common.decorator;

import net.wangds.common.GeneralParentObject;

/**
 * 抽象装饰类.
 * <p>
 * <h1>修改列表:</h1>
 * <ol>
 * <li>初始版本, by wangds@gmail.com, 2013-11-7 上午9:26:41</li>
 * </ol>
 * </p>
 * @param <C>
 *          被装饰组件类型.
 * @author wangds@gmail.com
 * @version 0.1.1
 * @since 0.1
 */
public abstract class AbstractDecorator<C> extends
    GeneralParentObject implements Decorator<C> {

  /**
   * 被装饰组件.
   */
  private C component;

  // @Override
  @Override
  public C getComponent() {
    return this.component;
  }

  // @Override
  @Override
  public void setComponent(final C theComponent) {
    this.component = theComponent;
  }

}
